package com.example.basic.web.model.notice;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.basic.base.IdEntity;
import com.example.basic.base.event.PreCreateEventEntity;
import com.example.basic.base.event.PreUpdateEventEntity;
import com.example.basic.utils.CommonConstant;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 出库通知单
 * </p>
 *
 * @roleor zzl
 * @since 2024-3-14
 */
@Data
@TableName("sys_out_notice")
@ApiModel(value="OutNotice对象", description="出库通知单")
public class OutNotice extends IdEntity implements PreCreateEventEntity, PreUpdateEventEntity {

    @ApiModelProperty(value = "数据id")
    @TableId(value = "id")

    private String id;

    @ApiModelProperty(value = "数据创建时间")
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date createAt;

    @ApiModelProperty(value = "数据创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty(value = "数据修改时间")
    @TableField(value = "update_at", fill = FieldFill.UPDATE)
    @JSONField(format = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date updateAt;

    @ApiModelProperty(value = "数据修改人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty(value = "通知单编码")
    @TableField("out_notice_code")
    private String outNoticeCode;

    @ApiModelProperty(value = "入库单据号")
    @TableField("in_pharm_code")
    private String inPharmCode;

    @ApiModelProperty(value = "遗体编码")
    @TableField("remains_code")
    private String remainsCode;

    @ApiModelProperty(value = "瞻仰厅")
    @TableField("admire_hall")
    private String admireHall;

    @ApiModelProperty(value = "火化间")
    @TableField("cremation_room")
    private String cremationRoom;

    @ApiModelProperty(value = "出库时间")
    @TableField("out_datetime")
    @JsonFormat(pattern = CommonConstant.TIME_FORMAT_TEN)
    private Date outDatetime;

    @ApiModelProperty(value = "出库员")
    @TableField("oper_person")
    private String operPerson;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "审核时间")
    @TableField("audit_time")
    @JsonFormat(pattern = CommonConstant.TIME_FORMAT_EIGHTEEN)
    private Date auditTime;

    @ApiModelProperty(value = "审核人")
    @TableField("audit_person")
    private String auditPerson;


}